<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2022/9/27
  Time: 20:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="zh-CN">
<head>

    <!-- 指定字符集 -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>修改用户</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery-2.1.0.min.js"></script>
    <script src="js/bootstrap.min.js"></script>

</head>
<body>
<div class="container" style="width: 400px;">
    <h3 style="text-align: center;">修改联系人</h3>
    <form action="${pageContext.request.contextPath}/updateUser" method="post">
        <input type="hidden" name="id" value="${admin.id}">
        <div class="form-group">
            <label for="username">姓名：</label>
            <input type="text" class="form-control" id="username" name="username" value="${admin.username}"  readonly="readonly" placeholder="请输入姓名" />
        </div>

        <div class="form-group">
            <label for="password">密码：</label>
            <input type="text" class="form-control" id="password" name="password"  value="${admin.password}" placeholder="请输入密码" />
        </div>

        <div class="form-group">
            <label>性别：</label>
            <c:if test="${admin.gender=='男'}">
                <input type="radio" name="gender" value="${admin.gender}" checked/>男
                <input type="radio" name="gender" value="女" />女
            </c:if>

            <c:if test="${admin.gender=='女'}">
                <input type="radio" name="gender" value="男" />男
                <input type="radio" name="gender" value="${admin.gender}" checked/>女
            </c:if>
        </div>

        <div class="form-group">
            <label for="age">年龄：</label>
            <input type="text" class="form-control" id="age" value="${admin.age}" name="age" placeholder="请输入年龄" />
        </div>

        <div class="form-group">
            <label for="address">籍贯：</label>
            <input type="text" class="form-control" id="address" name="address" value="${admin.address}"/>
<%--            <select name="address" id="address" class="form-control"  >--%>
<%--                <option value="陕西">陕西</option>--%>
<%--                <option value="北京">北京</option>--%>
<%--                <option value="上海">上海</option>--%>
<%--            </select>--%>
        </div>

        <div class="form-group">
            <label for="qq">QQ：</label>
            <input type="text" id="qq" class="form-control" name="qq" value="${admin.qq}" placeholder="请输入QQ号码"/>
        </div>

        <div class="form-group">
            <label for="email">Email：</label>
            <input type="text" id="email" class="form-control" name="email" value="${admin.email}" placeholder="请输入邮箱地址"/>
        </div>

        <div class="form-group" style="text-align: center">
            <input class="btn btn-primary" type="submit" value="提交" />
            <input class="btn btn-default" type="reset" value="重置" />
            <input class="btn btn-default" type="button" value="返回"/>
        </div>
    </form>
</div>
</body>
</html>